package com.molichuxing.services.infrastructure.service.impl;

import com.molichuxing.services.infrastructure.convertor.Convert;
import com.molichuxing.services.infrastructure.dao.GoodsPropertyMapper;
import com.molichuxing.services.infrastructure.dto.response.GoodsPropertyDto;
import com.molichuxing.services.infrastructure.service.GoodsPropertyService;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 商品属性表 服务实现类
 * </p>
 *
 * @author xuelin yi
 * @since 2019-08-12
 */
@Service
public class GoodsPropertyServiceImpl implements GoodsPropertyService {

    private static final Logger log = Logger.getLogger(GoodsSpecServiceImpl.class);

    @Resource
    private GoodsPropertyMapper goodsPropertyMapper;

    @Override
    public List<GoodsPropertyDto> getGoodsProductPropertyList(List<String> propertyList) {
        return Convert.toGoodsProductPropertyDto(goodsPropertyMapper.getPropertyList(propertyList));
    }
}
